import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter);

export const constantRouterMap = [
    //默认页面
    { path: '/', component: () => import('../views/login')},
    //成功页面
    { path: '/success', component: () => import('../views/success')},
    //失败页面 隐藏的
    { path: '/error', component: () => import('../views/error'),hidden: true}
]

export default new VueRouter({
    scrollBehavior: ({ y:0 }),
    routes: constantRouterMap
})
